package com.ssy.lingxi.marketing.model.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 换购 - BO
 * @author fhj
 * @date 2021/06/17
 * @version 2.0.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "13",description = "换购")
public class SwapBO extends ActivityDefinedBO{

    private static final long serialVersionUID = -4907531324342270813L;
    /**
     * 换购类型：1-满额换购 2-买商品换购
     * */
    @NotNull(message = "换购类型不能为空")
    @ApiModelProperty(dataType ="integer",value = "换购类型：1-满额换购 2-买商品换购")
    private Integer swapType;

    /**
     * 允许叠加活动类型：1-特价促销，2-直降促销，3-折扣促销，4-满量促销，5-满额促销，6-赠送促销，7-多件促销，8-组合促销
     * */
    @ApiModelProperty(dataType ="array:integer",value = "允许叠加活动类型")
    private List<Integer> allowActivity;

    /**
     * 是否允许叠加优惠劵
     * */
    @NotNull(message = "是否允许叠加优惠劵不能为空")
    @ApiModelProperty(dataType ="boolean",value = "是否允许叠加优惠劵")
    private Boolean allowCoupon;

    /**
     * 超限规则：1-按个人限购最高级享受优惠 2-不可购买
     * */
    @ApiModelProperty(dataType ="integer",value = "超限规则：1-按个人限购最高级享受优惠 2-不可购买")
    private Integer exceedRule;

    /**
     * 活动描述
     * */
    @ApiModelProperty(dataType ="string",value = "活动描述")
    private String describe;

}